/*
 * IssueValueDisplay.java
 *
 * Created on 11 January 2004, 09:20
 * Copyright (C) 2004, Velocityme Partnership
 */

package com.velocityme.client.gui.node.task.issue;

import com.velocityme.client.gui.responsibility.ResponsibilityValueDisplay;
import com.velocityme.interfaces.ContactablePK;
import com.velocityme.valueobjects.ContactableValue;
import com.velocityme.valueobjects.ContactableValueToString;
import com.velocityme.valueobjects.IssueValue;
import com.velocityme.valueobjects.NodeValue;
import com.velocityme.valueobjects.StateValueToString;
import com.velocityme.valueobjects.StatusValueToString;
import com.velocityme.valueobjects.TaskStateMachineValue;
import com.velocityme.valueobjects.TaskStateMachineValueToString;
import com.velocityme.valueobjects.TaskValue;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Iterator;
import javax.swing.SpinnerNumberModel;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;

/**
 *
 * @author  Robert Crida Work
 */
public class IssueValueDisplay extends javax.swing.JPanel {
    
    private IssueValue m_issueValue;
    private ResponsibilityValueDisplay m_responsibilityValueDisplay = null;
    private ResponsibilityValueDisplay m_interestedValueDisplay = null;
    
    /** Creates new form IssueValueDisplay */
    public IssueValueDisplay(IssueValue p_issueValue, ContactableValue p_defaultOwnerValue, Collection p_allTaskTypeValues, Collection p_interestedContactableValues, Collection p_responsibleContactableValues, TreeModel p_allContactableValues, boolean p_displayResponsibility) {
        initComponents();
        if (p_displayResponsibility) {
            java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 2;
            gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
            gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 0);
            gridBagConstraints.weighty = 1.0;
            remove(jCheckBoxInterested);
            add(m_interestedValueDisplay = new ResponsibilityValueDisplay(), gridBagConstraints);
            add(m_responsibilityValueDisplay = new ResponsibilityValueDisplay(), gridBagConstraints);
        }
        else
            jLabelResponsibility.setVisible(false);
        setIssueValue(p_issueValue, p_defaultOwnerValue, p_allTaskTypeValues, p_interestedContactableValues, p_responsibleContactableValues, p_allContactableValues, p_displayResponsibility);
    }
    
    public void setIssueValue(IssueValue p_issueValue, ContactableValue p_defaultOwnerValue, Collection p_allTaskTypeValues, Collection p_interestedContactableValues, Collection p_responsibleContactableValues, TreeModel p_allContactableValues, boolean p_displayResponsibility) {
        TaskValue taskValue = p_issueValue.getTaskValue();
        NodeValue nodeValue = null;
        if (taskValue != null) {
            nodeValue = taskValue.getNodeValue();
            if (taskValue.priorityHasBeenSet())
                jSliderPriority.setValue(taskValue.getPriority().intValue());
            if (taskValue.getCreatorContactableValue() != null)
                jLabelCreatorName.setText(ContactableValueToString.toString(taskValue.getCreatorContactableValue()));
            if (taskValue.getPercentageComplete() != null)
                jSliderComplete.setValue((int)taskValue.getPercentageComplete().byteValue());
            if (taskValue.getExpectedDuration_min() != null) {
                int totalMins = taskValue.getExpectedDuration_min().intValue();
                int days = totalMins / (8 * 60);
                int hours = (totalMins / 60) % 8;
                int mins = totalMins % 60;
                jSpinnerDurationDay.setValue(new Integer(days));
                jSpinnerDurationHr.setValue(new Integer(hours));
                jSpinnerDurationMin.setValue(new Integer(mins));
            }
            DateFormat m_formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");
            jLabelPeriodValue.setText(m_formatter.format(taskValue.getStartDate()) + " to " + m_formatter.format(taskValue.getStopDate()));
        }
        if (nodeValue != null && nodeValue.nameHasBeenSet())
            jTextFieldName.setText(nodeValue.getName());
        if (nodeValue != null && nodeValue.nodeIdHasBeenSet())
            jTextFieldId.setText(nodeValue.getNodeId().toString());
        if (nodeValue != null && nodeValue.descriptionHasBeenSet())
            jTextAreaDescription.setText(nodeValue.getDescription());
        jComboBoxOwner.removeAllItems();
        if (p_allContactableValues != null) {
            Object root = p_allContactableValues.getRoot();
            for (int i = 0; i < p_allContactableValues.getChildCount(root); i++) {
                Object nextNode = p_allContactableValues.getChild(root, i);
                recursiveAddContactable(p_allContactableValues, nextNode);
            }
            jComboBoxOwner.setSelectedItem(new ContactableValueToString(p_defaultOwnerValue));
        }
        else
            jComboBoxOwner.addItem(new ContactableValueToString(p_defaultOwnerValue));
        jComboBoxTaskType.removeAllItems();
        if (p_allTaskTypeValues != null) {
            Iterator i = p_allTaskTypeValues.iterator();
            while(i.hasNext()) {
                jComboBoxTaskType.addItem(new TaskStateMachineValueToString((TaskStateMachineValue)i.next()));
            }
        }
        else 
            jComboBoxTaskType.addItem(new TaskStateMachineValueToString(taskValue.getTaskStateMachineValue()));
        if (taskValue != null) {
            if (taskValue.getTaskStateMachineValue() != null)
                jComboBoxTaskType.setSelectedItem(new TaskStateMachineValueToString(taskValue.getTaskStateMachineValue()));
            jLabelStateValue.setText(StateValueToString.toString(taskValue.getStateValue()));
            jLabelStatusValue.setText(StatusValueToString.toString(taskValue.getStatusValue()));
        }
        if (m_interestedValueDisplay != null)
            m_interestedValueDisplay.setAssignedValues(p_interestedContactableValues, p_allContactableValues);
        if (m_responsibilityValueDisplay != null)
            m_responsibilityValueDisplay.setAssignedValues(p_responsibleContactableValues, p_allContactableValues);
        m_issueValue = p_issueValue;
    }
    
    private void recursiveAddContactable(TreeModel p_allContactableValues, Object p_node) {
        jComboBoxOwner.addItem(((DefaultMutableTreeNode)p_node).getUserObject());
        for (int i = 0; i < p_allContactableValues.getChildCount(p_node); i++) {
            Object nextNode = p_allContactableValues.getChild(p_node, i);
            recursiveAddContactable(p_allContactableValues, nextNode);
        }
    }
    
    public IssueValue getIssueValue() {
        if (m_issueValue.getTaskValue() == null) {
            m_issueValue.setTaskValue(new TaskValue());
            m_issueValue.getTaskValue().setNodeValue(new NodeValue());
        }
        m_issueValue.getTaskValue().setPriority(new Integer(jSliderPriority.getValue()));
        m_issueValue.getTaskValue().setOwnerContactableValue((ContactableValue)jComboBoxOwner.getSelectedItem());
        m_issueValue.getTaskValue().setTaskStateMachineValue((TaskStateMachineValue)jComboBoxTaskType.getSelectedItem());
        m_issueValue.getTaskValue().setPercentageComplete(new Byte((byte)jSliderComplete.getValue()));
        int days = ((Integer)jSpinnerDurationDay.getValue()).intValue();
        int hours = ((Integer)jSpinnerDurationHr.getValue()).intValue();
        int mins = ((Integer)jSpinnerDurationMin.getValue()).intValue();
        m_issueValue.getTaskValue().setExpectedDuration_min(new Integer((days * 8 + hours) * 60 + mins));
        m_issueValue.getTaskValue().getNodeValue().setName(jTextFieldName.getText());
        m_issueValue.getTaskValue().getNodeValue().setDescription(jTextAreaDescription.getText());
        return m_issueValue;
    }
    
    public ContactablePK[] getResponsibleContactablePKs() {
        if (m_responsibilityValueDisplay != null)
            return m_responsibilityValueDisplay.getAssignedPKs();
        else
            return null;
    }
    
    public ContactablePK[] getInterestedContactablePKs() {
        if (m_interestedValueDisplay != null)
            return m_interestedValueDisplay.getAssignedPKs();
        else
            return null;
    }
    
    public boolean getInterestedDefault() {
        return jCheckBoxInterested.isSelected();
    }
    
    public void setEditable(boolean p_editable) {
        jTextFieldName.setEditable(p_editable);
        jLabelId.setVisible(!p_editable);
        jTextFieldId.setVisible(!p_editable);
        jTextAreaDescription.setEditable(p_editable);
        jSliderPriority.setEnabled(p_editable);
        jLabelCreator.setVisible(!p_editable);
        jLabelCreatorName.setVisible(!p_editable);
        jComboBoxOwner.setEnabled(p_editable);
        jComboBoxTaskType.setEnabled(p_editable);
        jLabelState.setVisible(!p_editable);
        jLabelStateValue.setVisible(!p_editable);
        jLabelStatus.setVisible(!p_editable);
        jLabelStatusValue.setVisible(!p_editable);
        jSliderComplete.setEnabled(p_editable);
        jSpinnerDurationDay.setEnabled(p_editable);
        jSpinnerDurationHr.setEnabled(p_editable);
        jSpinnerDurationMin.setEnabled(p_editable);
        jLabelPeriod.setVisible(!p_editable);
        jLabelPeriodValue.setVisible(!p_editable);
        if (m_interestedValueDisplay != null)
            m_interestedValueDisplay.setEditable(p_editable);
        if (m_responsibilityValueDisplay != null)
            m_responsibilityValueDisplay.setEditable(p_editable);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        java.awt.GridBagConstraints gridBagConstraints;

        jLabelIcon = new javax.swing.JLabel();
        jLabelName = new javax.swing.JLabel();
        jTextFieldName = new javax.swing.JTextField();
        jLabelId = new javax.swing.JLabel();
        jTextFieldId = new javax.swing.JTextField();
        jLabelDescription = new javax.swing.JLabel();
        jScrollPaneDescription = new javax.swing.JScrollPane();
        jTextAreaDescription = new javax.swing.JTextArea();
        jLabelPriority = new javax.swing.JLabel();
        jSliderPriority = new javax.swing.JSlider();
        jLabelCreator = new javax.swing.JLabel();
        jLabelCreatorName = new javax.swing.JLabel();
        jLabelOwner = new javax.swing.JLabel();
        jComboBoxOwner = new javax.swing.JComboBox();
        jLabelTaskType = new javax.swing.JLabel();
        jComboBoxTaskType = new javax.swing.JComboBox();
        jLabelState = new javax.swing.JLabel();
        jLabelStateValue = new javax.swing.JLabel();
        jLabelStatus = new javax.swing.JLabel();
        jLabelStatusValue = new javax.swing.JLabel();
        jLabelComplete = new javax.swing.JLabel();
        jSliderComplete = new javax.swing.JSlider();
        jLabelDuration = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jSpinnerDurationDay = new javax.swing.JSpinner();
        jLabelDurationDay = new javax.swing.JLabel();
        jSpinnerDurationHr = new javax.swing.JSpinner();
        jLabelDurationHr = new javax.swing.JLabel();
        jSpinnerDurationMin = new javax.swing.JSpinner();
        jLabelDurationMin = new javax.swing.JLabel();
        jLabelPeriod = new javax.swing.JLabel();
        jLabelPeriodValue = new javax.swing.JLabel();
        jLabelInterested = new javax.swing.JLabel();
        jCheckBoxInterested = new javax.swing.JCheckBox();
        jLabelResponsibility = new javax.swing.JLabel();

        setLayout(new java.awt.GridBagLayout());

        jLabelIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/velocityme/client/icons/issue-32x32.png")));
        add(jLabelIcon, new java.awt.GridBagConstraints());

        jLabelName.setText("Name:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelName, gridBagConstraints);

        jTextFieldName.setEditable(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jTextFieldName, gridBagConstraints);

        jLabelId.setText("ID#:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelId, gridBagConstraints);

        jTextFieldId.setEditable(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jTextFieldId, gridBagConstraints);

        jLabelDescription.setText("Description:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelDescription, gridBagConstraints);

        jScrollPaneDescription.setPreferredSize(new java.awt.Dimension(106, 66));
        jTextAreaDescription.setEditable(false);
        jTextAreaDescription.setLineWrap(true);
        jTextAreaDescription.setWrapStyleWord(true);
        jScrollPaneDescription.setViewportView(jTextAreaDescription);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jScrollPaneDescription, gridBagConstraints);

        jLabelPriority.setText("Priority:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelPriority, gridBagConstraints);

        jSliderPriority.setMajorTickSpacing(10);
        jSliderPriority.setPaintLabels(true);
        jSliderPriority.setPaintTicks(true);
        jSliderPriority.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jSliderPriority, gridBagConstraints);

        jLabelCreator.setText("Creator:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelCreator, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelCreatorName, gridBagConstraints);

        jLabelOwner.setText("Owner:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelOwner, gridBagConstraints);

        jComboBoxOwner.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jComboBoxOwner, gridBagConstraints);

        jLabelTaskType.setText("Task Type:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelTaskType, gridBagConstraints);

        jComboBoxTaskType.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jComboBoxTaskType, gridBagConstraints);

        jLabelState.setText("State:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelState, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelStateValue, gridBagConstraints);

        jLabelStatus.setText("Status:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelStatus, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelStatusValue, gridBagConstraints);

        jLabelComplete.setText("% Complete:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        add(jLabelComplete, gridBagConstraints);

        jSliderComplete.setMajorTickSpacing(10);
        jSliderComplete.setPaintLabels(true);
        jSliderComplete.setPaintTicks(true);
        jSliderComplete.setValue(0);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jSliderComplete, gridBagConstraints);

        jLabelDuration.setText("Duration:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelDuration, gridBagConstraints);

        jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 2, 2));

        jSpinnerDurationDay.setModel(new SpinnerNumberModel(0, 0, 30, 1));
        jSpinnerDurationDay.setPreferredSize(new java.awt.Dimension(35, 18));
        jPanel1.add(jSpinnerDurationDay);

        jLabelDurationDay.setText("day:");
        jPanel1.add(jLabelDurationDay);

        jSpinnerDurationHr.setModel(new SpinnerNumberModel(0, 0, 8, 1));
        jSpinnerDurationHr.setPreferredSize(new java.awt.Dimension(35, 18));
        jPanel1.add(jSpinnerDurationHr);

        jLabelDurationHr.setText("hr:");
        jPanel1.add(jLabelDurationHr);

        jSpinnerDurationMin.setModel(new SpinnerNumberModel(0, 0, 59, 1));
        jSpinnerDurationMin.setPreferredSize(new java.awt.Dimension(35, 18));
        jPanel1.add(jSpinnerDurationMin);

        jLabelDurationMin.setText("min");
        jPanel1.add(jLabelDurationMin);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        add(jPanel1, gridBagConstraints);

        jLabelPeriod.setText("Period:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelPeriod, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelPeriodValue, gridBagConstraints);

        jLabelInterested.setText("Interested:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelInterested, gridBagConstraints);

        jCheckBoxInterested.setSelected(true);
        jCheckBoxInterested.setText("Add to interested contactables?");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jCheckBoxInterested, gridBagConstraints);

        jLabelResponsibility.setText("Responsibility:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        add(jLabelResponsibility, gridBagConstraints);

    }//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox jCheckBoxInterested;
    private javax.swing.JComboBox jComboBoxOwner;
    private javax.swing.JComboBox jComboBoxTaskType;
    private javax.swing.JLabel jLabelComplete;
    private javax.swing.JLabel jLabelCreator;
    private javax.swing.JLabel jLabelCreatorName;
    private javax.swing.JLabel jLabelDescription;
    private javax.swing.JLabel jLabelDuration;
    private javax.swing.JLabel jLabelDurationDay;
    private javax.swing.JLabel jLabelDurationHr;
    private javax.swing.JLabel jLabelDurationMin;
    private javax.swing.JLabel jLabelIcon;
    private javax.swing.JLabel jLabelId;
    private javax.swing.JLabel jLabelInterested;
    private javax.swing.JLabel jLabelName;
    private javax.swing.JLabel jLabelOwner;
    private javax.swing.JLabel jLabelPeriod;
    private javax.swing.JLabel jLabelPeriodValue;
    private javax.swing.JLabel jLabelPriority;
    private javax.swing.JLabel jLabelResponsibility;
    private javax.swing.JLabel jLabelState;
    private javax.swing.JLabel jLabelStateValue;
    private javax.swing.JLabel jLabelStatus;
    private javax.swing.JLabel jLabelStatusValue;
    private javax.swing.JLabel jLabelTaskType;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPaneDescription;
    private javax.swing.JSlider jSliderComplete;
    private javax.swing.JSlider jSliderPriority;
    private javax.swing.JSpinner jSpinnerDurationDay;
    private javax.swing.JSpinner jSpinnerDurationHr;
    private javax.swing.JSpinner jSpinnerDurationMin;
    private javax.swing.JTextArea jTextAreaDescription;
    private javax.swing.JTextField jTextFieldId;
    private javax.swing.JTextField jTextFieldName;
    // End of variables declaration//GEN-END:variables
    
}
